package com.panghu.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.panghu.entity.MultiQuestion;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 选择题题库表 服务类
 * </p>
 *
 * @author huahua
 * @since 2022-03-19
 */
public interface MultiQuestionService extends IService<MultiQuestion> {
    //按试卷id进行选择题查询
    public List<MultiQuestion> findByIdAndType(Integer PaperId);
    //分页查询所有试题
    public IPage<MultiQuestion> findAll(Page<MultiQuestion> page);

    int add(MultiQuestion multiQuestion);

    List<Integer> findBySubject(String subject,Integer pageNo);
}
